package field_method6;

public class User {//用户类

    String userName;

    String password;
    //登录 方法 进行验证
    public boolean login(String userNameParam,String passwordparam){

        System.out.println("传递过来的用户名:" + userNameParam);
        System.out.println("传递过来的密码:" + passwordparam);

        if (userNameParam.equals("admin") && passwordparam.equals("123456")) {
            return true;
        }else {
            return false;
        }
    }
}
